package my.yuan.ms.rediskafkams.constant;

public enum TokenLimiterEm {
    LOW(10, 0.1f, 100),
    COMMON(15,0.1f,145),
    HIGH(20, 0.1f, 200),
    ;
    private int perToken;
    private float timeIntervalSecond;
    private int tokenCapacity;

    TokenLimiterEm(int perToken, float timeIntervalSecond, int tokenCapacity) {
        this.perToken = perToken;
        this.timeIntervalSecond = timeIntervalSecond;
        this.tokenCapacity = tokenCapacity;
    }

    public void setPerToken(int perToken) {
        this.perToken = perToken;
    }

    public void setTimeIntervalSecond(float timeIntervalSecond) {
        this.timeIntervalSecond = timeIntervalSecond;
    }

    public void setTokenCapacity(int tokenCapacity) {
        this.tokenCapacity = tokenCapacity;
    }

    public int getPerToken() {
        return perToken;
    }

    public float getTimeIntervalSecond() {
        return timeIntervalSecond;
    }

    public int getTokenCapacity() {
        return tokenCapacity;
    }
}


